export class Pagination {
  current: number = 1;
  pageSize: number = 20;
  pageSizeOptions: Array<string> = ["5", "10", "15", "20"];
  total: number = 0;
  showQuickJumper: boolean = true;
  showSizeChanger: boolean = true;
  sort: string = "";
  position: string = "bottom";
  getRecords() {}
  onChange(pageNumber: number) {}
  onShowSizeChange(pageNumber: number, pageSize: number) {}
  showTotal() {}

  toJson() {
    return {
      current: this.current,
      pageSize: this.pageSize,
      pageSizeOptions: this.pageSizeOptions,
      total: this.total,
      showQuickJumper: this.showQuickJumper,
      showSizeChanger: this.showSizeChanger,
      sort: this.sort,
      position: this.position,
      getRecords: this.getRecords,
      onChange: this.onChange,
      onShowSizeChange: this.onShowSizeChange,
      showTotal: this.showTotal
    };
  }
}

export default Pagination;
